package com.huangyi.mstemplateservice.controller;


import com.huangyi.mstemplateservice.service.TestThreadPoolServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/test/thread")
public class TestThreadPoolController {

    @Autowired
    TestThreadPoolServiceImpl testThreadPoolService;
    @RequestMapping("/info")
    public void info() {
        log.info("TestThreadPoolController thread name :{}", Thread.currentThread().getName());
        testThreadPoolService.info();
    }
}
